/*
 * QTextCharFormatAdapter.h  0.4.0 / Nov 30, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QTEXTCHARFORMATADAPTER_H
#define QTEXTCHARFORMATADAPTER_H

#include "Cute4jSwing.h"

// QTextCharFormatAdapter Class. -----------------------------------------------

/*!
 * \brief QTextCharFormat Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QTextCharFormatAdapter : public QTextCharFormat
{
public:
  QTextCharFormatAdapter(jobject format);
public:
  static void initialize(JNIEnv *env, jclass cls);
private:
  static jmethodID sm_getFontMID;
  static jmethodID sm_isFontBoldMID;
  static jmethodID sm_getColorMID;
};

#endif // QTEXTCHARFORMATADAPTER_H
